package ar.edu.unicen.pladema.ui.model.points;


public class ScreenPoint extends AbstractPoint {
	
	public ScreenPoint(int px, int py) {
		super(px, py);
	}
	public ScreenPoint lowerPoint(ScreenPoint otro) {
		return new ScreenPoint(
				Math.min(this.getX(), otro.getX()),
				Math.min(this.getY(), otro.getY()));
	}

	public ScreenPoint upperPoint(ScreenPoint otro) {
		return new ScreenPoint(
				Math.max(this.getX(), otro.getX()),
				Math.max(this.getY(), otro.getY()));
	}
}
